/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fsktms.packetmanager;

import fsktms.IPacket;

/**
 *
 * @author salm
 */
class Packet
    implements IPacket
{
    private byte[] data = null;
    private int index = -1;
    private int type;
    
    public Packet(int type, int indx, byte[] dat)
    {
        this.data = dat;
        this.index = indx;
        this.type = type;
    }
    
    @Override
    public byte[] getData()
    {
        return this.data;
    }

    @Override
    public int getType()
    {
        return this.type;
    }

    @Override
    public int getIndex()
    {
        return this.index;
    }
}
